package me.weijing.common.model;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class Location implements Serializable {
    private static final long serialVersionUID = -7199825147567485859L;
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private String distance;// 距离
    @DatabaseField
    private double lat;// 经度
    @DatabaseField
    private double lon;// 纬度
    @DatabaseField
    private String address;// 地址

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Location [distance=" + distance + ", lat=" + lat + ", lon=" + lon + "]";
    }
}
